package com.gupaoedu.design.observer;

import com.gupaoedu.design.observer.core.EventListener;
import com.gupaoedu.design.observer.core.EventType;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2018/3/20.
 */
public class Subject extends EventListener {

    public void add() {
        System.out.println("订阅者新增方法。");
        trigger(EventType.ON_ADD);
    }
}
